package com.cloudbroker.bcs.platform.ltb.bizexport.t2.social;

import com.cloudbroker.bcs.platform.ltb.bizapi.service.admin.back.CommentQueryResult;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.comment.CommentBizService;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.comment.back.CommentSaveBack;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.comment.back.CommentSearchResult;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.comment.back.CommentUpvoteResult;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.comment.vo.*;
import com.cloudbroker.bcs.platform.ltb.bizapi.t2service.social.CommentT2BizService;
import com.hundsun.jresplus.remoting.impl.annotation.ServiceParam;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by zhaosh19213 on 2016/7/17.
 */
@Service
public class CommentT2 implements CommentT2BizService {


    @Resource
    private CommentBizService commentBizService;

    @Override
    public CommentSaveBack funcSaveComment(@ServiceParam("param") CommentAddForm form){
        return commentBizService.funcSaveComment(form);
    }

    @Override
    public CommentSaveBack funcReplyComment(@ServiceParam("param") CommentReplyForm form) {
        return commentBizService.funcSaveCommentReply(form);
    }


    @Override
    public CommentSaveBack funcUpdateComment(@ServiceParam("param") CommentUpdateForm form) {
        return commentBizService.funcUpdateComment(form);
    }

    @Override
    public CommentSaveBack funcCloseComment(@ServiceParam("param") CommentStatusForm form) {
        return commentBizService.funcCloseComment(form);
    }

    @Override
    public CommentSaveBack fucTopComment(@ServiceParam("param") CommentTopForm form) {
        return commentBizService.fucTopComment(form);
    }

    @Override
    public CommentQueryResult fucQueryCommentByTarget(@ServiceParam("param") CommentTargetForm form){
        return commentBizService.queryCommentsByTarget(form);
    }

    @Override
    public CommentSearchResult funcSearchComment(@ServiceParam("param") CommentSearchForm form) {
        return commentBizService.funcSearchComment(form);
    }

    @Override
    public CommentUpvoteResult funcUpvoteComment(@ServiceParam("param") CommentUpvoteForm form) {
        return commentBizService.funcUpvoteComment(form);
    }
}
